package com.gistmap.sideline.dto;

import com.gistmap.sideline.entity.User;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

@Data
@NoArgsConstructor
public class UserCache {

    private Long id;

    private String name;

    private String avatar;

    private String isActive;

    public UserCache(User user){
        BeanUtils.copyProperties(user, this);
    }
}
